home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 3
/
Amiga Format CD03 (1996-07-04)(Future Publishing)(GB)(Track 1 of 6)[!][issue 1996-08].iso
/
comms
/
netsoftware
/
launchtcp.lha
/
LaunchTCP
/
LaunchTCP.doc
< prev
next >
Wrap
Text File
|
1994-03-10
|
4KB
|
73 lines
LaunchTCP v 0.1
---------
LaunchTCP is designed to help you get back into SLIP in case you accidentally
crash or have to reset or something, and you just can't run your startnet
script the same every time, bacause you have changing IP numbers. It will
save your IP address, as well as the window placement in a file in ENVARC:.
It features simply a string gadget to keep up with your IP number, and a
button to click on to execute the startnet script. Some minor modification
of the startnet script is required however.
Why?
---------
I quickly found out that editing my startnet script every time I connected,
got old. Fast. And, not being much of a programmer in the way of AREXX,
and not being able to get any of the sample scripts others had to work for
me, I modified my startnet script to take an argument, which was the
changing number in my IP address. Even this got to be annoying, so I threw
together an MUI program to execute the script, inserting the IP argument
at the end of the call to startnet. Worked just dandy, but there was one
small problem-- loading MUI's libraries up just to restore my SLIP
connection seemed a bit of waste and overkill. Thus, I threw together
(although it took me a day extra to get it working like the MUI version,
which took 15 minutes to do originally) a gadtools version, that's much
smaller, and easier on my memory.
Installation
---------
Like I said, a couple minor modifications are necessary on the startnet
script. [see my startnet script as an example] First, determine how much
of your IP address changes, and setup the startnet script to take that as
an argument. So, if you have an IP address like 130.18.80.*, you would
want to setup the argument as 130.18.80.{insert-ip} . Simple. Next,
go through your startnet script, and add full pathnames to all of your
commands that aren't resident in the ROM (yes, this is a problem that I
can't seem to find. It may work fine for you, but I can't get my program
to recognize my CLI paths, when started from the Workbench. I have added
WB2CLI() in the source, but this still doesn't seem to do it.) This is
a hassle, I know, but it doesn't last long, and it doesn't hurt anything.
(BTW, my source assumes the file is 'AmiTCP:bin/startnet')
Use
---------
Ok, now just drop the icon (thanks to Budha [Seth Harman] of #amiga for the
neat icon!) wherever-- I have it in my WBStartup directory, cause I TCP,
like, every day for about 12+ hours.
Now, when you connect to your server, SLIP, and get your IP, type the
number that changes (or however much of your local IP address that you're
giving as an argument) in the string gadget, which can also be activated
by typing 'i'. The configuration [IP number, window location] will be
saved when you press <Return>.
Kill your terminal program.
Now, either hit 's' or click the Startnet button, and the script should run
providing the changes were made to AmiTCP:bin/startnet.
Disclaimer
---------
I can't assume any responsibility, blah, blah, blah. All it really does
is save a 40 byte file, and execute a script, so it should create any
problems.
Thanks
---------
Ralph Babel showed me some debugging tricks, that helped me track down
that annoying 'oops! I forgot to allocate memory for my string, so it
caused massive enforcer hits!' bug.
Seth Harman (Budha) made that neat icon for me. You should've seen the
one _I_ had made earlier. Makes you wonder why I took art classes... :P
If it doesn't help you, fine-- it was free. Just thought I'd share something I
think is useful with anyone else who could use it.
Danimal
djm2@ra.msstate.edu